<!DOCTYPE html>
<html lang="en" xmlns="http://www.w3.org/1999/xhtml" xmlns:th="http://www.thymeleaf.org">
<head>
    <meta charset="UTF-8">
    <title>客户管理系统</title>
    <link rel="stylesheet" type="text/css" media="screen" href="css/base.css" />
    <link rel="stylesheet" type="text/css" media="screen" href="css/login.css" />

</head>
<body>

    <div class="bg">
        <img src="images/loginBackground.png">
    </div>

    <div class="form">

        <a href="/login.html" class="register">登录</a>
        <p class="title2">
            客户管理系统
        </p>
        <p class="title3">
            Customer management system
        </p>
        <form action="register" method="post">
            <input class="input input_name" type="text" name="name" placeholder="管理员账号" th:value="${name}"/>
            <input class="input input_pw" type="password" name="password1" placeholder="密码"/>
            <input class="input input_pw" type="password" name="password2" placeholder="确认密码"/>
<!--            <input class="input input_ysm" type="text" name="code" placeholder="验证码"/>-->
<!--            <a href="javascript:refreshCode();" title="点击换一张">-->
<!--                <img id="code" src="iCode"/></a>-->
            <input class="sub" type="submit" value="注册" />
        </form>
        <p class="error" th:text="${msg}">

        </p>
    </div>
    <script type="text/javascript">
        function refreshCode(){
            document.getElementById("code").src = "iCode?" + Math.random();
        }
    </script>
</body>
</html>